<template>
	<view>
		<u-navbar title="选择课程">
			<view slot="right" style="margin-right: 40upx;font-size: 25upx;color: #0585F2;" @click="getRouter">选好了</view>
		</u-navbar>
		<view class="curriculum-auto">
			<view class="curriculum-type">
				<u-form-item :label-position="labelPosition" label="课程类型：" prop="goodsType" label-width="150">
					<u-input :border="border" type="select" :select-open="selectShow" v-model="model.goodsType" placeholder="请选择课程类型" @click="selectShow = true"></u-input>
				</u-form-item>
				<u-select mode="mutil-column-auto" :list="selectList" v-model="selectShow" @confirm="selectConfirm"></u-select>
			</view>
		</view>
		<view class="curriculum-bottom">
			<u-row gutter="16" v-for="item in 4" :key="item" @click="chose(item)">
				<view class="xz"></view>
				<!-- <view class="xz-x"></view> -->
				<u-col span="4">
					<view class="demo-layout bg-purple">
						<u-image width="100%" height="220rpx" :src="src"></u-image>
					</view>
				</u-col>
				<u-col span="7">
					<view class="demo-layout bg-purple-light" style="text-align: justify;">
						<view class="curriculum-bottom-title">成人英语新概念英语</view>
						<view class="curriculum-bottom-branchclass">语言培训-成人英语-新概念</view>
						<view class="curriculum-bottom-introduce">专为中国的英语学习人士而改编，根专为中国的英语学习人士而改编，根</view>
					</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default{
		data () {
			return {
				list: ['课程', '校区', '师资', '咨询师'],
				selectShow: false,
				model: {
					goodsType: '',
				},
				src: 'http://1812.img.pp.sohu.com.cn/images/blog/2009/11/18/18/8/125b6560a6ag214.jpg',
				border: false,
				labelPosition: 'left',
				selectList: [
					{
						value: 1,
						label: '语言培训',
						children: [
							{
								value: 2,
								label: '成人英语',
								children: [
									{
										value: 3,
										label: '新概念英语'
									},
									{
										value: 4,
										label: '零基础英语'
									}
								]
							},
							{
								value: 5,
								label: '广西',
								children: [
									{
										value: 6,
										label: '南宁'
									},
									{
										value: 7,
										label: '桂林'
									}
								]
							}
						]
					},
					{
						value: 8,
						label: '设计培训',
						children: [
							{
								value: 9,
								label: '网页设计',
								children: [
									{
										value: 10,
										label: 'DW'
									}
								]
							}
						]
					}
				]
			}
		},
		methods:{
			chose () {
				
			}
		}
	}
</script>

<style lang="less" scoped>
	.xz{
		width: 30upx;
		height: 30upx;
		background-color: #FFFFFF;
		border: 1px solid #999999;
		border-radius: 50%;
	}
	.xz-x{
		width: 32upx;
		height: 32upx;
		// background-color: #FFFFFF;
		// border: 1px solid #999999;
		border-radius: 50%;
		background-image: url(../../static/gx.png);
		background-size: 100% 100%;
	}
	.curriculum-auto .curriculum-type .u-form-item{
		padding: 0;
	}
	.curriculum-auto .curriculum-type .u-border-bottom:after{
		border-bottom-width: 0;
	}
	.curriculum-auto .curriculum-type .u-input{
		background-color: #fff;
		padding: 0px 10px !important;
	}
	.curriculum-auto .curriculum-type /deep/ .u-form-item--left__content__label{
		color: #888;
	}
	.curriculum-bottom /deep/ .u-row{
		margin-bottom: 15px;
	}
	.curriculum-bottom /deep/ .u-row:nth-last-child(1){
		margin-bottom: 0;
	}
	.curriculum-box{
		padding-bottom: 7vh;
	}
	.curriculum-auto .nav-fl{
		padding: 30upx;
	}
	.curriculum-auto .curriculum-type{
		padding: 30upx;
		background-color: #F4F9FE;
	}
	.curriculum-bottom{
		padding: 30upx;
	}
	.curriculum-bottom .curriculum-bottom-title{
		color: #333333;
		font-size: 32upx;
		font-weight: bolder;
		display: flex;
		align-items: center;
		.tag-title{
			width: 90upx;
			height: 34upx;
			background: rgba(0, 129, 243, 0.1);
			border-radius: 3upx;
			font-size: 20upx;
			font-weight: 500;
			color: #0081F1;
			line-height: 34upx;
			text-align: center;
			margin-right: 10upx;
		}
	}
	.curriculum-bottom .curriculum-bottom-branchclass{
		color: #888888;
		margin: 15upx 0;
	}
	.curriculum-bottom .curriculum-bottom-introduce{
		color: #0081F1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		padding: 15upx;
		background-color: #F4F9FE;
	}
</style>
